<%--
  Created by IntelliJ IDEA.
  User: Summer
  Date: 2022/6/7
  Time: 22:16
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    //People people = new People()
    //people.setAddress();
    //people.setId();
    //people.setAge();
    //people.setName()
%>

<jsp:useBean id="people" class="com.summer.pojo.People" scope="page"/>
<jsp:setProperty name="people" property="address" value=""/>
<jsp:setProperty name="people" property="id" value="1"/>
<jsp:setProperty name="people" property="age" value="3"/>
<jsp:setProperty name="people" property="name" value="小狂神呀"/>

<%--<%=peopLe.getAddress()%>--%>
<%--<%=peopLe.getId()%>--%>
<%--<%=peopLe.getsetAge()%>--%>
<%--<%=peopLe.getName()%>--%>
姓名：<jsp:getProperty name="people" property="name"/>
id:<jsp:getProperty name="people" property="id"/>
年龄：<jsp:getProperty name="people" property="age"/>
地址：<jsp:getProperty name="people" property="address"/>
</body>
</html>
